#ifndef __TINY__
#define __TINY__

typedef struct setting {
	unsigned short st_port;
	char st_root[1024];
} Setting;

#define LISTENQ 10

void parse_args (int argc, char **argv, Setting *s);

int open_listen_fd (Setting *s);

int accept_connection (int listenfd);

void dispatch (int fd, Setting *setting);

#endif
